import request from '@/utils/request'

//从数据库对应的客户列表中查找数据
export function newViewDetails(clientId) {
  return request({
    url: '/viewDetails/findNewViewsDetails/' + clientId,
    method: 'get'
  })
}

// 数据渲染
export function dataRenering() {
  return request({
    url: '/viewDetails/userInfo',
    method: 'get'
  })
}

// 保存信息到客户信息表userinfo中
export function saveInfoToClientTable(id,data) {
  return request({
    url: '/viewDetails/saveInfo',
    method: 'post',
    data: {
      id:id,
      iJSONString: JSON.stringify(data)
    }
  })
}
